package com.czh.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.subject.infra.basic.entity.SubjectCategory;

import java.util.List;
import java.util.Map;

/**
 * 题目分类(SubjectCategory)表服务接口
 *
 * @author caozaihui
 * @since 2024-07-25 01:25:09
 */
public interface SubjectCategoryService extends IService<SubjectCategory> {

    /** 
     * 
     * @param id 主键
     * @author caozaihui  
     * @description  通过ID查询单条数据
     * @date 2024-07-25 01:25:09
     * @return 实例对象
     */
    SubjectCategory selectSubjectCategoryById (Long id);
        
//    /**
//     *
//     * @param subjectCategorydto 实例对象
//     * @author caozaihui
//     * @description 分页查询数据
//     * @date 2024-07-25 01:25:09
//     * @return 实例对象
//     */
//    public List<SubjectCategory> findSubjectCategorySelectList (SubjectCategoryDto subjectCategorydto);


   /**
     *
     * @param subjectCategorydto 实例对象
     * @author caozaihui
     * @description  新增数据
     * @date 2024-07-25 01:25:09
     * @return 实例对象
     */
   int insert(SubjectCategory subjectCategorydto);

   /**
     *
     * @param subjectCategory 实例对象
     * @author caozaihui
     * @description 修改数据并返回
     * @date 2024-07-25 01:25:09
     * @return 实例对象
     */
    int update(SubjectCategory subjectCategory);
    
    
    /**
     *
     * @param ids 主键
     * @author caozaihui 
     * @description  通过主键删除数据
     * @date 2024-07-25 01:25:09
     * @return
     */
    int deleteById(List<Long> ids);

    List<SubjectCategory> queryCategory(SubjectCategory subjectCategory);

    Boolean delete(SubjectCategory subjectCategory);

    List<Map<String, Long>> queryCategoryCountByCondition();
}

